package com.kuang.service;

import com.kuang.dao.UserMapper;
import com.kuang.pojo.User;

import java.util.List;


public class UserServiceImpl implements UserService{

    //servicce业务层调dao层  组合dao层
    private UserMapper userMapper;

    public void setUserMapper(UserMapper userMapper) {
        this.userMapper = userMapper;
    }

    @Override
    public List<User> queryUserByCode(String user_code, String user_pwd) {
        return userMapper.queryUserByCode(user_code,user_pwd);
    }

    @Override
    public User selectUser(String user_code) {
        return  userMapper.selectUser(user_code);
    }
}
